package org.dromara.pay.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.common.json.handler.DecimalRemoveZeroSerializer;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 付款记录视图对象 work_pay_record
 *
 * @author Lion Li
 * @date 2025-02-06
 */
@Data
@NoArgsConstructor
public class ReportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String itemName;
    @JsonSerialize(using = DecimalRemoveZeroSerializer.class)
    private BigDecimal amount;

    private String icon;

    public ReportVo(String itemName, BigDecimal amount, String icon) {
        this.itemName = itemName;
        this.amount = amount;
        this.icon = icon;
    }
    public ReportVo(String itemName, BigDecimal amount) {
        this.itemName = itemName;
        this.amount = amount;
    }
}
